@extends('plugin.hostserver.front.layout.base')
@section('content')
    <div id="pageTitle" class="HeaderAdjust" data-bg-src=""
         style="background-image: url(&quot;&quot;); margin-top: 220px;">
        <div class="container">
            <div class="row">
                <div class="col-md-6 col-md-offset-3">
                    <div class="section-title">
                        <h2>{{ $title }}</h2>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div id="login">
        <div class="container">
            <form class="loginForm" action="{{ nroute('plugin.hostserver.user.handle') }}" id="updatePassword" method="post">
                @csrf

                <input type="hidden" name="type" value="{{ $type }}">

                <div class="form-group @error('email') has-error @enderror">
                    <label for="email">旧邮箱 *</label>
                    <input type="email" name="old_email" readonly value="{{ user('email','host_server') }}" class="form-control sendEmailVal" id="email" placeholder="邮箱">
                    @error('old_email')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>
                <div class="form-group">
                    <p>
                        <a class="btn btn-danger sendEmail" style="margin-top: 10px;">获取旧邮箱验证码</a>
                    </p>
                </div>
                <div class="form-group @error('code') has-error @enderror">
                    <label for="code">旧邮箱验证码 *</label>
                    <input type="text" name="old_code" class="form-control" id="code" placeholder="验证码">
                    @error('old_code')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>
                <div class="form-group @error('email') has-error @enderror">
                    <label for="email">新邮箱 *</label>
                    <input type="email" name="email"  value="{{ old('email') }}" class="form-control sendEmailVal2" id="email" placeholder="邮箱">
                    @error('email')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>
                <div class="form-group">
                    <p>
                        <a class="btn btn-danger sendEmail2" style="margin-top: 10px;">获取新邮箱验证码</a>
                    </p>
                </div>
                <div class="form-group @error('code') has-error @enderror">
                    <label for="code">新邮箱验证码 *</label>
                    <input type="text" name="code" class="form-control" id="code" placeholder="验证码">
                    @error('code')
                    <span class="help-block">{{ $message }}</span>
                    @enderror
                </div>


                <p class="help-block clearfix">

                    <button type="button" class="btn btn-info btn-block text-uppercase ajax-submit">
                        修改
                    </button>
                </p>
            </form>
        </div>
    </div>
@endsection